//============================================================================
// Name        : cpp_imagemagick_resize.cpp
// Author      : darkflash
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <Magick++.h>
using namespace std;
using namespace Magick;

int main() {
	Image my_image;
	my_image.read("sample.jpg");

	Image temp_image(my_image);

	Geometry geometry = temp_image.size();

	size_t width, height;

	width = geometry.width();
	height = geometry.height();
	temp_image.zoom(Geometry(width*0.5, height*0.5));

	//temp_image.magick("png");
	temp_image.write("convert.png");
	return 0;
}
